package com.lagou.edu.dao;

import com.lagou.edu.pojo.Account;

import java.sql.SQLException;

/**
 * @author Kirito
 * @description:
 * @date 2020/04/04
 */
public interface IAccountDao {

    /**
     * 根据卡号查询账户
     *
     * @param cardNo String
     * @return Account
     */
    Account queryAccountByCardNo(String cardNo) throws SQLException;

    /**
     * 修改账户金额
     *
     * @param account Account
     */
    int updateAccountByCardNo(Account account) throws SQLException;
}
